
Layout test started..
added node in g2 p2[0] with id 0
added node in g2 p2[1] with id 1
added node in g2 p2[2] with id 2
added node in g2 p2[3] with id 3
added node in g2 p2[4] with id 4
added edge in g2 with id 2 between node 0 and node 1 with id 0
added edge in g2 between node 1 and node 2 with id 1
added edge in g2 between node 2 and node 3 with id 2
added edge in g2 between node 3 and node 1 with id 3
added edge in g2 between node 3 and node 4 with id 4
before layout
Dumping graph id:2 (5 nodes, 5 real nodes, 0 dummy nodes, 5 edges, 0 horizontal edges, 0 selfedges 0 reversed edges)
Nodes:
Node id 0: (0 self-edges size (40,20) 0 in-edges 1 out-edges)
  1 Out edges: 0->1
Node id 1: (0 self-edges size (100,25) 2 in-edges 1 out-edges)
  2 In  edges: 0->1 3->1
  1 Out edges: 1->2
Node id 2: (0 self-edges size (520,10) 1 in-edges 1 out-edges)
  1 In  edges: 1->2
  1 Out edges: 2->3
Node id 3: (0 self-edges size (400,50) 1 in-edges 2 out-edges)
  1 In  edges: 2->3
  2 Out edges: 3->1 3->4
Node id 4: (0 self-edges size (100,20) 1 in-edges 0 out-edges)
  1 In  edges: 3->4
Edges:
Edge id 0: 0->1 reversed=0 horizontal=0
Edge id 1: 1->2 reversed=0 horizontal=0
Edge id 2: 2->3 reversed=0 horizontal=0
Edge id 3: 3->1 reversed=0 horizontal=0
Edge id 4: 3->4 reversed=0 horizontal=0
Reversed edges changed to 1
WeightedMedianHeuristic(): edge crossings reduced from 0 to 0
Ordering::Dump() there are 9 levels
Level rank 0 has these 1 nodes:
  id:0(23,0)
Level rank 1 has these 1 nodes:
  id:5(28,40)
Level rank 2 has these 1 nodes:
  id:1(23,80)
Level rank 3 has these 2 nodes:
  id:8(25,120) id:6(30,120)
Level rank 4 has these 2 nodes:
  id:9(20,160) id:2(35,160)
Level rank 5 has these 2 nodes:
  id:10(25,200) id:7(30,200)
Level rank 6 has these 1 nodes:
  id:3(23,240)
Level rank 7 has these 1 nodes:
  id:11(28,280)
Level rank 8 has these 1 nodes:
  id:4(23,320)
between level 2 and level 3 are 0 crossings
at rank 2 found 0 crossings and expected 0 crossings
between level 3 and level 4 are 0 crossings
at rank 3 found 0 crossings and expected 0 crossings
between level 4 and level 5 are 0 crossings
at rank 4 found 0 crossings and expected 0 crossings
between level 5 and level 6 are 0 crossings
at rank 5 found 0 crossings and expected 0 crossings
}
Graph has 1 starter nodes
Ordering::Dump() there are 9 levels
Level rank 0 has these 1 nodes:
  id:0(23,0)
Level rank 1 has these 1 nodes:
  id:5(28,40)
Level rank 2 has these 1 nodes:
  id:1(23,80)
Level rank 3 has these 2 nodes:
  id:8(25,120) id:6(30,120)
Level rank 4 has these 2 nodes:
  id:9(20,160) id:2(35,160)
Level rank 5 has these 2 nodes:
  id:10(25,200) id:7(30,200)
Level rank 6 has these 1 nodes:
  id:3(23,240)
Level rank 7 has these 1 nodes:
  id:11(28,280)
Level rank 8 has these 1 nodes:
  id:4(23,320)
Final Crossings: 0
after layout of graph 2 with dummy nodes and changed edges
Dumping graph id:2 (12 nodes, 5 real nodes, 7 dummy nodes, 12 edges, 0 horizontal edges, 0 selfedges 1 reversed edges)
Nodes:
Node id 0: (0 self-edges size (40,20) 0 in-edges 1 out-edges)
  1 Out edges: 0->5
Node id 1: (0 self-edges size (100,25) 1 in-edges 2 out-edges)
  1 In  edges: 5->1
  2 Out edges: 1->8 1->6
Node id 2: (0 self-edges size (520,10) 1 in-edges 1 out-edges)
  1 In  edges: 6->2
  1 Out edges: 2->7
Node id 3: (0 self-edges size (400,50) 2 in-edges 1 out-edges)
  2 In  edges: 10->3 7->3
  1 Out edges: 3->11
Node id 4: (0 self-edges size (100,20) 1 in-edges 0 out-edges)
  1 In  edges: 11->4
Node id 5: (0 self-edges size (1,1) 1 in-edges 1 out-edges)
  1 In  edges: 0->5
  1 Out edges: 5->1
Node id 6: (0 self-edges size (1,1) 1 in-edges 1 out-edges)
  1 In  edges: 1->6
  1 Out edges: 6->2
Node id 7: (0 self-edges size (1,1) 1 in-edges 1 out-edges)
  1 In  edges: 2->7
  1 Out edges: 7->3
Node id 8: (0 self-edges size (1,1) 1 in-edges 1 out-edges)
  1 In  edges: 1->8
  1 Out edges: 8->9
Node id 9: (0 self-edges size (1,1) 1 in-edges 1 out-edges)
  1 In  edges: 8->9
  1 Out edges: 9->10
Node id 10: (0 self-edges size (1,1) 1 in-edges 1 out-edges)
  1 In  edges: 9->10
  1 Out edges: 10->3
Node id 11: (0 self-edges size (1,1) 1 in-edges 1 out-edges)
  1 In  edges: 3->11
  1 Out edges: 11->4
Edges:
Edge id 5: 0->5 reversed=0 horizontal=0
Edge id 6: 5->1 reversed=0 horizontal=0
Edge id 7: 1->6 reversed=0 horizontal=0
Edge id 8: 6->2 reversed=0 horizontal=0
Edge id 9: 2->7 reversed=0 horizontal=0
Edge id 10: 7->3 reversed=0 horizontal=0
Edge id 11: 1->8 reversed=1 horizontal=0
Edge id 12: 8->9 reversed=1 horizontal=0
Edge id 13: 9->10 reversed=1 horizontal=0
Edge id 14: 10->3 reversed=1 horizontal=0
Edge id 15: 3->11 reversed=0 horizontal=0
Edge id 16: 11->4 reversed=0 horizontal=0
edge 3->1 should be reversed via dummy node 5
graph 2 maxrank = 8
node id 0: relative pos (0,0) absolute pos (23,0) dummy=0
node id 1: relative pos (0,2) absolute pos (23,80) dummy=0
node id 2: relative pos (1,4) absolute pos (35,160) dummy=0
node id 3: relative pos (0,6) absolute pos (23,240) dummy=0
node id 4: relative pos (0,8) absolute pos (23,320) dummy=0
node id 5: relative pos (0,1) absolute pos (28,40) dummy=1
node id 6: relative pos (1,3) absolute pos (30,120) dummy=1
node id 7: relative pos (1,5) absolute pos (30,200) dummy=1
node id 8: relative pos (0,3) absolute pos (25,120) dummy=1
node id 9: relative pos (0,4) absolute pos (20,160) dummy=1
node id 10: relative pos (0,5) absolute pos (25,200) dummy=1
node id 11: relative pos (0,7) absolute pos (28,280) dummy=1
Layout test passed!
This is the image svg data:

<svg width="55" height="340" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
 <g>
  <title>miptgraph</title>
  <style>
    .small { font: italic 15px sans-serif; }
  </style>
  <!-- edge id 5 edge from node 0->5 reversed=0 -->
  <line id="edge_5" x1="33" y1="10" x2="38" y2="50" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="2" stroke="#696969" fill="none"/>
  <!-- edge id 6 edge from node 5->1 reversed=0 -->
  <line id="edge_6" x1="38" y1="50" x2="33" y2="90" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="2" stroke="#696969" fill="none"/>
  <!-- edge id 7 edge from node 1->6 reversed=0 -->
  <line id="edge_7" x1="33" y1="90" x2="40" y2="130" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="2" stroke="#696969" fill="none"/>
  <!-- edge id 8 edge from node 6->2 reversed=0 -->
  <line id="edge_8" x1="40" y1="130" x2="45" y2="170" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="2" stroke="#696969" fill="none"/>
  <!-- edge id 9 edge from node 2->7 reversed=0 -->
  <line id="edge_9" x1="45" y1="170" x2="40" y2="210" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="2" stroke="#696969" fill="none"/>
  <!-- edge id 10 edge from node 7->3 reversed=0 -->
  <line id="edge_10" x1="40" y1="210" x2="33" y2="250" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="2" stroke="#696969" fill="none"/>
  <!-- edge id 11 edge from node 1->8 reversed=1 -->
  <line id="edge_11" x1="33" y1="90" x2="35" y2="130" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="2" stroke="#0f0fff" fill="none"/>
  <!-- edge id 12 edge from node 8->9 reversed=1 -->
  <line id="edge_12" x1="35" y1="130" x2="30" y2="170" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="2" stroke="#0f0fff" fill="none"/>
  <!-- edge id 13 edge from node 9->10 reversed=1 -->
  <line id="edge_13" x1="30" y1="170" x2="35" y2="210" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="2" stroke="#0f0fff" fill="none"/>
  <!-- edge id 14 edge from node 10->3 reversed=1 -->
  <line id="edge_14" x1="35" y1="210" x2="33" y2="250" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="2" stroke="#0f0fff" fill="none"/>
  <!-- edge id 15 edge from node 3->11 reversed=0 -->
  <line id="edge_15" x1="33" y1="250" x2="38" y2="290" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="2" stroke="#696969" fill="none"/>
  <!-- edge id 16 edge from node 11->4 reversed=0 -->
  <line id="edge_16" x1="38" y1="290" x2="33" y2="330" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="2" stroke="#696969" fill="none"/>
  <rect id="node_0" width="40" height="20" x="18"  y="-5" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke="#000000" fill="#7fff00"/>
  <text x="23" y="10" class="small">0</text>
  <rect id="node_1" width="100" height="25" x="18"  y="75" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke="#000000" fill="#7fff00"/>
  <text x="23" y="90" class="small">1</text>
  <rect id="node_2" width="520" height="10" x="30"  y="155" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke="#000000" fill="#7fff00"/>
  <text x="35" y="170" class="small">2</text>
  <rect id="node_3" width="400" height="50" x="18"  y="235" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke="#000000" fill="#7fff00"/>
  <text x="23" y="250" class="small">3</text>
  <rect id="node_4" width="100" height="20" x="18"  y="315" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke="#000000" fill="#7fff00"/>
  <text x="23" y="330" class="small">4</text>
  <rect id="node_5" width="0" height="0" x="38"  y="50" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke="#000000" fill="#ff0000"/>
  <rect id="node_6" width="0" height="0" x="40"  y="130" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke="#000000" fill="#ff0000"/>
  <rect id="node_7" width="0" height="0" x="40"  y="210" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke="#000000" fill="#ff0000"/>
  <rect id="node_8" width="0" height="0" x="35"  y="130" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke="#000000" fill="#ff0000"/>
  <rect id="node_9" width="0" height="0" x="30"  y="170" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke="#000000" fill="#ff0000"/>
  <rect id="node_10" width="0" height="0" x="35"  y="210" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke="#000000" fill="#ff0000"/>
  <rect id="node_11" width="0" height="0" x="38"  y="290" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke="#000000" fill="#ff0000"/>
 </g>
</svg>
